package com.supreme.commonmongo.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.time.LocalDateTime;

@Data
@Document(value = "logger")
public class MngLogger {

    @Id
    private String id;

    @Field(name = "request_url")
    private String requestUrl;

    @Field(name = "request_uri")
    private String requestUri;

    @Field(name = "request_method")
    private String requestMethod;

    @Field(name = "controller")
    private String controller;

    @Field(name = "method")
    private String method;

    @Field(name = "exception")
    private String exception;

    @Field(name = "create_time")
    private LocalDateTime createTime;
}
